home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / gfx / nsIPrintSettings.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  59KB  |  1,313 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPrintSettings.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPrintSettings_h__
  6. #define __gen_nsIPrintSettings_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #include "nsMargin.h"
  18. class nsIPrintSession; /* forward declaration */
  19.  
  20.  
  21. /* starting interface:    nsIPrintSettings */
  22. #define NS_IPRINTSETTINGS_IID_STR "f1094df6-ce0e-42c9-9847-2f663172c38d"
  23.  
  24. #define NS_IPRINTSETTINGS_IID \
  25.   {0xf1094df6, 0xce0e, 0x42c9, \
  26.     { 0x98, 0x47, 0x2f, 0x66, 0x31, 0x72, 0xc3, 0x8d }}
  27.  
  28. /**
  29.  * Simplified graphics interface for JS rendering.
  30.  *
  31.  * @status UNDER_REVIEW
  32.  */
  33. class NS_NO_VTABLE nsIPrintSettings : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRINTSETTINGS_IID)
  37.  
  38.   /**
  39.    * PrintSettings to be Saved Navigation Constants
  40.    */
  41.   enum { kInitSaveOddEvenPages = 1U };
  42.  
  43.   enum { kInitSaveHeaderLeft = 2U };
  44.  
  45.   enum { kInitSaveHeaderCenter = 4U };
  46.  
  47.   enum { kInitSaveHeaderRight = 8U };
  48.  
  49.   enum { kInitSaveFooterLeft = 16U };
  50.  
  51.   enum { kInitSaveFooterCenter = 32U };
  52.  
  53.   enum { kInitSaveFooterRight = 64U };
  54.  
  55.   enum { kInitSaveBGColors = 128U };
  56.  
  57.   enum { kInitSaveBGImages = 256U };
  58.  
  59.   enum { kInitSavePaperSize = 512U };
  60.  
  61.   enum { kInitSavePaperName = 1024U };
  62.  
  63.   enum { kInitSavePaperSizeUnit = 2048U };
  64.  
  65.   enum { kInitSavePaperSizeType = 4096U };
  66.  
  67.   enum { kInitSavePaperData = 8192U };
  68.  
  69.   enum { kInitSavePaperWidth = 16384U };
  70.  
  71.   enum { kInitSavePaperHeight = 32768U };
  72.  
  73.   enum { kInitSaveReversed = 65536U };
  74.  
  75.   enum { kInitSaveInColor = 131072U };
  76.  
  77.   enum { kInitSaveOrientation = 262144U };
  78.  
  79.   enum { kInitSavePrintCommand = 524288U };
  80.  
  81.   enum { kInitSavePrinterName = 1048576U };
  82.  
  83.   enum { kInitSavePrintToFile = 2097152U };
  84.  
  85.   enum { kInitSaveToFileName = 4194304U };
  86.  
  87.   enum { kInitSavePageDelay = 8388608U };
  88.  
  89.   enum { kInitSaveMargins = 16777216U };
  90.  
  91.   enum { kInitSaveNativeData = 33554432U };
  92.  
  93.   enum { kInitSavePlexName = 67108864U };
  94.  
  95.   enum { kInitSaveShrinkToFit = 134217728U };
  96.  
  97.   enum { kInitSaveScaling = 268435456U };
  98.  
  99.   enum { kInitSaveColorspace = 536870912U };
  100.  
  101.   enum { kInitSaveResolutionName = 1073741824U };
  102.  
  103.   enum { kInitSaveDownloadFonts = 2147483648U };
  104.  
  105.   enum { kInitSaveAll = 4294967295U };
  106.  
  107.   enum { kPrintOddPages = 1 };
  108.  
  109.   enum { kPrintEvenPages = 2 };
  110.  
  111.   enum { kEnableSelectionRB = 4 };
  112.  
  113.   enum { kRangeAllPages = 0 };
  114.  
  115.   enum { kRangeSpecifiedPageRange = 1 };
  116.  
  117.   enum { kRangeSelection = 2 };
  118.  
  119.   enum { kRangeFocusFrame = 3 };
  120.  
  121.   enum { kJustLeft = 0 };
  122.  
  123.   enum { kJustCenter = 1 };
  124.  
  125.   enum { kJustRight = 2 };
  126.  
  127.   /**
  128.    * FrameSet Default Type Constants
  129.    */
  130.   enum { kUseInternalDefault = 0 };
  131.  
  132.   enum { kUseSettingWhenPossible = 1 };
  133.  
  134.   /**
  135.    * Page Size Type Constants
  136.    */
  137.   enum { kPaperSizeNativeData = 0 };
  138.  
  139.   enum { kPaperSizeDefined = 1 };
  140.  
  141.   /**
  142.    * Page Size Unit Constants
  143.    */
  144.   enum { kPaperSizeInches = 0 };
  145.  
  146.   enum { kPaperSizeMillimeters = 1 };
  147.  
  148.   /**
  149.    * Orientation Constants
  150.    */
  151.   enum { kPortraitOrientation = 0 };
  152.  
  153.   enum { kLandscapeOrientation = 1 };
  154.  
  155.   /**
  156.    * Print Frame Constants
  157.    */
  158.   enum { kNoFrames = 0 };
  159.  
  160.   enum { kFramesAsIs = 1 };
  161.  
  162.   enum { kSelectedFrame = 2 };
  163.  
  164.   enum { kEachFrameSep = 3 };
  165.  
  166.   /**
  167.    * How to Enable Frame Set Printing Constants
  168.    */
  169.   enum { kFrameEnableNone = 0 };
  170.  
  171.   enum { kFrameEnableAll = 1 };
  172.  
  173.   enum { kFrameEnableAsIsAndEach = 2 };
  174.  
  175.   /**
  176.    * Set PrintOptions 
  177.    */
  178.   /* void SetPrintOptions (in PRInt32 aType, in PRBool aTurnOnOff); */
  179.   NS_IMETHOD SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff) = 0;
  180.  
  181.   /**
  182.    * Get PrintOptions 
  183.    */
  184.   /* PRBool GetPrintOptions (in PRInt32 aType); */
  185.   NS_IMETHOD GetPrintOptions(PRInt32 aType, PRBool *_retval) = 0;
  186.  
  187.   /**
  188.    * Set PrintOptions Bit field
  189.    */
  190.   /* PRInt32 GetPrintOptionsBits (); */
  191.   NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval) = 0;
  192.  
  193.   /**
  194.    * Returns W/H in Twips from Paper Size H/W
  195.    */
  196.   /* void GetPageSizeInTwips (out long aWidth, out long aHeight); */
  197.   NS_IMETHOD GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight) = 0;
  198.  
  199.   /**
  200.    * Makes a new copy
  201.    */
  202.   /* nsIPrintSettings clone (); */
  203.   NS_IMETHOD Clone(nsIPrintSettings **_retval) = 0;
  204.  
  205.   /**
  206.    * Assigns the internal values from the "in" arg to the current object
  207.    */
  208.   /* void assign (in nsIPrintSettings aPS); */
  209.   NS_IMETHOD Assign(nsIPrintSettings *aPS) = 0;
  210.  
  211.   /**
  212.    * Data Members
  213.    */
  214.   /* [noscript] attribute nsIPrintSession printSession; */
  215.   NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession) = 0;
  216.   NS_IMETHOD SetPrintSession(nsIPrintSession * aPrintSession) = 0;
  217.  
  218.   /* attribute long startPageRange; */
  219.   NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange) = 0;
  220.   NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange) = 0;
  221.  
  222.   /* attribute long endPageRange; */
  223.   NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange) = 0;
  224.   NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange) = 0;
  225.  
  226.   /* attribute double marginTop; */
  227.   NS_IMETHOD GetMarginTop(double *aMarginTop) = 0;
  228.   NS_IMETHOD SetMarginTop(double aMarginTop) = 0;
  229.  
  230.   /* attribute double marginLeft; */
  231.   NS_IMETHOD GetMarginLeft(double *aMarginLeft) = 0;
  232.   NS_IMETHOD SetMarginLeft(double aMarginLeft) = 0;
  233.  
  234.   /* attribute double marginBottom; */
  235.   NS_IMETHOD GetMarginBottom(double *aMarginBottom) = 0;
  236.   NS_IMETHOD SetMarginBottom(double aMarginBottom) = 0;
  237.  
  238.   /* attribute double marginRight; */
  239.   NS_IMETHOD GetMarginRight(double *aMarginRight) = 0;
  240.   NS_IMETHOD SetMarginRight(double aMarginRight) = 0;
  241.  
  242.   /* attribute double scaling; */
  243.   NS_IMETHOD GetScaling(double *aScaling) = 0;
  244.   NS_IMETHOD SetScaling(double aScaling) = 0;
  245.  
  246.   /* attribute boolean printBGColors; */
  247.   NS_IMETHOD GetPrintBGColors(PRBool *aPrintBGColors) = 0;
  248.   NS_IMETHOD SetPrintBGColors(PRBool aPrintBGColors) = 0;
  249.  
  250.   /* attribute boolean printBGImages; */
  251.   NS_IMETHOD GetPrintBGImages(PRBool *aPrintBGImages) = 0;
  252.   NS_IMETHOD SetPrintBGImages(PRBool aPrintBGImages) = 0;
  253.  
  254.   /* attribute short printRange; */
  255.   NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange) = 0;
  256.   NS_IMETHOD SetPrintRange(PRInt16 aPrintRange) = 0;
  257.  
  258.   /* attribute wstring title; */
  259.   NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0;
  260.   NS_IMETHOD SetTitle(const PRUnichar * aTitle) = 0;
  261.  
  262.   /* attribute wstring docURL; */
  263.   NS_IMETHOD GetDocURL(PRUnichar * *aDocURL) = 0;
  264.   NS_IMETHOD SetDocURL(const PRUnichar * aDocURL) = 0;
  265.  
  266.   /* attribute wstring headerStrLeft; */
  267.   NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft) = 0;
  268.   NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft) = 0;
  269.  
  270.   /* attribute wstring headerStrCenter; */
  271.   NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter) = 0;
  272.   NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter) = 0;
  273.  
  274.   /* attribute wstring headerStrRight; */
  275.   NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight) = 0;
  276.   NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight) = 0;
  277.  
  278.   /* attribute wstring footerStrLeft; */
  279.   NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft) = 0;
  280.   NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft) = 0;
  281.  
  282.   /* attribute wstring footerStrCenter; */
  283.   NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter) = 0;
  284.   NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter) = 0;
  285.  
  286.   /* attribute wstring footerStrRight; */
  287.   NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight) = 0;
  288.   NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight) = 0;
  289.  
  290.   /* attribute short howToEnableFrameUI; */
  291.   NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI) = 0;
  292.   NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI) = 0;
  293.  
  294.   /* attribute boolean isCancelled; */
  295.   NS_IMETHOD GetIsCancelled(PRBool *aIsCancelled) = 0;
  296.   NS_IMETHOD SetIsCancelled(PRBool aIsCancelled) = 0;
  297.  
  298.   /* attribute short printFrameTypeUsage; */
  299.   NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage) = 0;
  300.   NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage) = 0;
  301.  
  302.   /* attribute short printFrameType; */
  303.   NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType) = 0;
  304.   NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType) = 0;
  305.  
  306.   /* attribute boolean printSilent; */
  307.   NS_IMETHOD GetPrintSilent(PRBool *aPrintSilent) = 0;
  308.   NS_IMETHOD SetPrintSilent(PRBool aPrintSilent) = 0;
  309.  
  310.   /* attribute boolean shrinkToFit; */
  311.   NS_IMETHOD GetShrinkToFit(PRBool *aShrinkToFit) = 0;
  312.   NS_IMETHOD SetShrinkToFit(PRBool aShrinkToFit) = 0;
  313.  
  314.   /* attribute boolean showPrintProgress; */
  315.   NS_IMETHOD GetShowPrintProgress(PRBool *aShowPrintProgress) = 0;
  316.   NS_IMETHOD SetShowPrintProgress(PRBool aShowPrintProgress) = 0;
  317.  
  318.   /* attribute wstring paperName; */
  319.   NS_IMETHOD GetPaperName(PRUnichar * *aPaperName) = 0;
  320.   NS_IMETHOD SetPaperName(const PRUnichar * aPaperName) = 0;
  321.  
  322.   /* attribute short paperSizeType; */
  323.   NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType) = 0;
  324.   NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType) = 0;
  325.  
  326.   /* attribute short paperData; */
  327.   NS_IMETHOD GetPaperData(PRInt16 *aPaperData) = 0;
  328.   NS_IMETHOD SetPaperData(PRInt16 aPaperData) = 0;
  329.  
  330.   /* attribute double paperWidth; */
  331.   NS_IMETHOD GetPaperWidth(double *aPaperWidth) = 0;
  332.   NS_IMETHOD SetPaperWidth(double aPaperWidth) = 0;
  333.  
  334.   /* attribute double paperHeight; */
  335.   NS_IMETHOD GetPaperHeight(double *aPaperHeight) = 0;
  336.   NS_IMETHOD SetPaperHeight(double aPaperHeight) = 0;
  337.  
  338.   /* attribute short paperSizeUnit; */
  339.   NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit) = 0;
  340.   NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit) = 0;
  341.  
  342.   /* attribute wstring plexName; */
  343.   NS_IMETHOD GetPlexName(PRUnichar * *aPlexName) = 0;
  344.   NS_IMETHOD SetPlexName(const PRUnichar * aPlexName) = 0;
  345.  
  346.   /* attribute wstring colorspace; */
  347.   NS_IMETHOD GetColorspace(PRUnichar * *aColorspace) = 0;
  348.   NS_IMETHOD SetColorspace(const PRUnichar * aColorspace) = 0;
  349.  
  350.   /* attribute wstring resolutionName; */
  351.   NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName) = 0;
  352.   NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName) = 0;
  353.  
  354.   /* attribute boolean downloadFonts; */
  355.   NS_IMETHOD GetDownloadFonts(PRBool *aDownloadFonts) = 0;
  356.   NS_IMETHOD SetDownloadFonts(PRBool aDownloadFonts) = 0;
  357.  
  358.   /* attribute boolean printReversed; */
  359.   NS_IMETHOD GetPrintReversed(PRBool *aPrintReversed) = 0;
  360.   NS_IMETHOD SetPrintReversed(PRBool aPrintReversed) = 0;
  361.  
  362.   /* attribute boolean printInColor; */
  363.   NS_IMETHOD GetPrintInColor(PRBool *aPrintInColor) = 0;
  364.   NS_IMETHOD SetPrintInColor(PRBool aPrintInColor) = 0;
  365.  
  366.   /* attribute long paperSize; */
  367.   NS_IMETHOD GetPaperSize(PRInt32 *aPaperSize) = 0;
  368.   NS_IMETHOD SetPaperSize(PRInt32 aPaperSize) = 0;
  369.  
  370.   /* attribute long orientation; */
  371.   NS_IMETHOD GetOrientation(PRInt32 *aOrientation) = 0;
  372.   NS_IMETHOD SetOrientation(PRInt32 aOrientation) = 0;
  373.  
  374.   /* attribute wstring printCommand; */
  375.   NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand) = 0;
  376.   NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand) = 0;
  377.  
  378.   /* attribute long numCopies; */
  379.   NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies) = 0;
  380.   NS_IMETHOD SetNumCopies(PRInt32 aNumCopies) = 0;
  381.  
  382.   /* attribute wstring printerName; */
  383.   NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName) = 0;
  384.   NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName) = 0;
  385.  
  386.   /* attribute boolean printToFile; */
  387.   NS_IMETHOD GetPrintToFile(PRBool *aPrintToFile) = 0;
  388.   NS_IMETHOD SetPrintToFile(PRBool aPrintToFile) = 0;
  389.  
  390.   /* attribute wstring toFileName; */
  391.   NS_IMETHOD GetToFileName(PRUnichar * *aToFileName) = 0;
  392.   NS_IMETHOD SetToFileName(const PRUnichar * aToFileName) = 0;
  393.  
  394.   /* attribute long printPageDelay; */
  395.   NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay) = 0;
  396.   NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay) = 0;
  397.  
  398.   /**
  399.    * This attribute tracks whether the PS has been initialized 
  400.    * from a printer specified by the "printerName" attr. 
  401.    * If a different name is set into the "printerName" 
  402.    * attribute than the one it was initialized with the PS
  403.    * will then get intialized from that printer.
  404.    */
  405.   /* attribute boolean isInitializedFromPrinter; */
  406.   NS_IMETHOD GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter) = 0;
  407.   NS_IMETHOD SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter) = 0;
  408.  
  409.   /**
  410.    * This attribute tracks whether the PS has been initialized 
  411.    * from prefs. If a different name is set into the "printerName" 
  412.    * attribute than the one it was initialized with the PS
  413.    * will then get intialized from prefs again.
  414.    */
  415.   /* attribute boolean isInitializedFromPrefs; */
  416.   NS_IMETHOD GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs) = 0;
  417.   NS_IMETHOD SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs) = 0;
  418.  
  419.   /* [noscript] void SetMarginInTwips (in nsNativeMarginRef aMargin); */
  420.   NS_IMETHOD SetMarginInTwips(nsMargin & aMargin) = 0;
  421.  
  422.   /* [noscript] void GetMarginInTwips (in nsNativeMarginRef aMargin); */
  423.   NS_IMETHOD GetMarginInTwips(nsMargin & aMargin) = 0;
  424.  
  425. };
  426.  
  427. /* Use this macro when declaring classes that implement this interface. */
  428. #define NS_DECL_NSIPRINTSETTINGS \
  429.   NS_IMETHOD SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff); \
  430.   NS_IMETHOD GetPrintOptions(PRInt32 aType, PRBool *_retval); \
  431.   NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval); \
  432.   NS_IMETHOD GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight); \
  433.   NS_IMETHOD Clone(nsIPrintSettings **_retval); \
  434.   NS_IMETHOD Assign(nsIPrintSettings *aPS); \
  435.   NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession); \
  436.   NS_IMETHOD SetPrintSession(nsIPrintSession * aPrintSession); \
  437.   NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange); \
  438.   NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange); \
  439.   NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange); \
  440.   NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange); \
  441.   NS_IMETHOD GetMarginTop(double *aMarginTop); \
  442.   NS_IMETHOD SetMarginTop(double aMarginTop); \
  443.   NS_IMETHOD GetMarginLeft(double *aMarginLeft); \
  444.   NS_IMETHOD SetMarginLeft(double aMarginLeft); \
  445.   NS_IMETHOD GetMarginBottom(double *aMarginBottom); \
  446.   NS_IMETHOD SetMarginBottom(double aMarginBottom); \
  447.   NS_IMETHOD GetMarginRight(double *aMarginRight); \
  448.   NS_IMETHOD SetMarginRight(double aMarginRight); \
  449.   NS_IMETHOD GetScaling(double *aScaling); \
  450.   NS_IMETHOD SetScaling(double aScaling); \
  451.   NS_IMETHOD GetPrintBGColors(PRBool *aPrintBGColors); \
  452.   NS_IMETHOD SetPrintBGColors(PRBool aPrintBGColors); \
  453.   NS_IMETHOD GetPrintBGImages(PRBool *aPrintBGImages); \
  454.   NS_IMETHOD SetPrintBGImages(PRBool aPrintBGImages); \
  455.   NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange); \
  456.   NS_IMETHOD SetPrintRange(PRInt16 aPrintRange); \
  457.   NS_IMETHOD GetTitle(PRUnichar * *aTitle); \
  458.   NS_IMETHOD SetTitle(const PRUnichar * aTitle); \
  459.   NS_IMETHOD GetDocURL(PRUnichar * *aDocURL); \
  460.   NS_IMETHOD SetDocURL(const PRUnichar * aDocURL); \
  461.   NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft); \
  462.   NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft); \
  463.   NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter); \
  464.   NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter); \
  465.   NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight); \
  466.   NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight); \
  467.   NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft); \
  468.   NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft); \
  469.   NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter); \
  470.   NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter); \
  471.   NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight); \
  472.   NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight); \
  473.   NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI); \
  474.   NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI); \
  475.   NS_IMETHOD GetIsCancelled(PRBool *aIsCancelled); \
  476.   NS_IMETHOD SetIsCancelled(PRBool aIsCancelled); \
  477.   NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage); \
  478.   NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage); \
  479.   NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType); \
  480.   NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType); \
  481.   NS_IMETHOD GetPrintSilent(PRBool *aPrintSilent); \
  482.   NS_IMETHOD SetPrintSilent(PRBool aPrintSilent); \
  483.   NS_IMETHOD GetShrinkToFit(PRBool *aShrinkToFit); \
  484.   NS_IMETHOD SetShrinkToFit(PRBool aShrinkToFit); \
  485.   NS_IMETHOD GetShowPrintProgress(PRBool *aShowPrintProgress); \
  486.   NS_IMETHOD SetShowPrintProgress(PRBool aShowPrintProgress); \
  487.   NS_IMETHOD GetPaperName(PRUnichar * *aPaperName); \
  488.   NS_IMETHOD SetPaperName(const PRUnichar * aPaperName); \
  489.   NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType); \
  490.   NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType); \
  491.   NS_IMETHOD GetPaperData(PRInt16 *aPaperData); \
  492.   NS_IMETHOD SetPaperData(PRInt16 aPaperData); \
  493.   NS_IMETHOD GetPaperWidth(double *aPaperWidth); \
  494.   NS_IMETHOD SetPaperWidth(double aPaperWidth); \
  495.   NS_IMETHOD GetPaperHeight(double *aPaperHeight); \
  496.   NS_IMETHOD SetPaperHeight(double aPaperHeight); \
  497.   NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit); \
  498.   NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit); \
  499.   NS_IMETHOD GetPlexName(PRUnichar * *aPlexName); \
  500.   NS_IMETHOD SetPlexName(const PRUnichar * aPlexName); \
  501.   NS_IMETHOD GetColorspace(PRUnichar * *aColorspace); \
  502.   NS_IMETHOD SetColorspace(const PRUnichar * aColorspace); \
  503.   NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName); \
  504.   NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName); \
  505.   NS_IMETHOD GetDownloadFonts(PRBool *aDownloadFonts); \
  506.   NS_IMETHOD SetDownloadFonts(PRBool aDownloadFonts); \
  507.   NS_IMETHOD GetPrintReversed(PRBool *aPrintReversed); \
  508.   NS_IMETHOD SetPrintReversed(PRBool aPrintReversed); \
  509.   NS_IMETHOD GetPrintInColor(PRBool *aPrintInColor); \
  510.   NS_IMETHOD SetPrintInColor(PRBool aPrintInColor); \
  511.   NS_IMETHOD GetPaperSize(PRInt32 *aPaperSize); \
  512.   NS_IMETHOD SetPaperSize(PRInt32 aPaperSize); \
  513.   NS_IMETHOD GetOrientation(PRInt32 *aOrientation); \
  514.   NS_IMETHOD SetOrientation(PRInt32 aOrientation); \
  515.   NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand); \
  516.   NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand); \
  517.   NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies); \
  518.   NS_IMETHOD SetNumCopies(PRInt32 aNumCopies); \
  519.   NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName); \
  520.   NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName); \
  521.   NS_IMETHOD GetPrintToFile(PRBool *aPrintToFile); \
  522.   NS_IMETHOD SetPrintToFile(PRBool aPrintToFile); \
  523.   NS_IMETHOD GetToFileName(PRUnichar * *aToFileName); \
  524.   NS_IMETHOD SetToFileName(const PRUnichar * aToFileName); \
  525.   NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay); \
  526.   NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay); \
  527.   NS_IMETHOD GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter); \
  528.   NS_IMETHOD SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter); \
  529.   NS_IMETHOD GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs); \
  530.   NS_IMETHOD SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs); \
  531.   NS_IMETHOD SetMarginInTwips(nsMargin & aMargin); \
  532.   NS_IMETHOD GetMarginInTwips(nsMargin & aMargin); 
  533.  
  534. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  535. #define NS_FORWARD_NSIPRINTSETTINGS(_to) \
  536.   NS_IMETHOD SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff) { return _to SetPrintOptions(aType, aTurnOnOff); } \
  537.   NS_IMETHOD GetPrintOptions(PRInt32 aType, PRBool *_retval) { return _to GetPrintOptions(aType, _retval); } \
  538.   NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval) { return _to GetPrintOptionsBits(_retval); } \
  539.   NS_IMETHOD GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight) { return _to GetPageSizeInTwips(aWidth, aHeight); } \
  540.   NS_IMETHOD Clone(nsIPrintSettings **_retval) { return _to Clone(_retval); } \
  541.   NS_IMETHOD Assign(nsIPrintSettings *aPS) { return _to Assign(aPS); } \
  542.   NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession) { return _to GetPrintSession(aPrintSession); } \
  543.   NS_IMETHOD SetPrintSession(nsIPrintSession * aPrintSession) { return _to SetPrintSession(aPrintSession); } \
  544.   NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange) { return _to GetStartPageRange(aStartPageRange); } \
  545.   NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange) { return _to SetStartPageRange(aStartPageRange); } \
  546.   NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange) { return _to GetEndPageRange(aEndPageRange); } \
  547.   NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange) { return _to SetEndPageRange(aEndPageRange); } \
  548.   NS_IMETHOD GetMarginTop(double *aMarginTop) { return _to GetMarginTop(aMarginTop); } \
  549.   NS_IMETHOD SetMarginTop(double aMarginTop) { return _to SetMarginTop(aMarginTop); } \
  550.   NS_IMETHOD GetMarginLeft(double *aMarginLeft) { return _to GetMarginLeft(aMarginLeft); } \
  551.   NS_IMETHOD SetMarginLeft(double aMarginLeft) { return _to SetMarginLeft(aMarginLeft); } \
  552.   NS_IMETHOD GetMarginBottom(double *aMarginBottom) { return _to GetMarginBottom(aMarginBottom); } \
  553.   NS_IMETHOD SetMarginBottom(double aMarginBottom) { return _to SetMarginBottom(aMarginBottom); } \
  554.   NS_IMETHOD GetMarginRight(double *aMarginRight) { return _to GetMarginRight(aMarginRight); } \
  555.   NS_IMETHOD SetMarginRight(double aMarginRight) { return _to SetMarginRight(aMarginRight); } \
  556.   NS_IMETHOD GetScaling(double *aScaling) { return _to GetScaling(aScaling); } \
  557.   NS_IMETHOD SetScaling(double aScaling) { return _to SetScaling(aScaling); } \
  558.   NS_IMETHOD GetPrintBGColors(PRBool *aPrintBGColors) { return _to GetPrintBGColors(aPrintBGColors); } \
  559.   NS_IMETHOD SetPrintBGColors(PRBool aPrintBGColors) { return _to SetPrintBGColors(aPrintBGColors); } \
  560.   NS_IMETHOD GetPrintBGImages(PRBool *aPrintBGImages) { return _to GetPrintBGImages(aPrintBGImages); } \
  561.   NS_IMETHOD SetPrintBGImages(PRBool aPrintBGImages) { return _to SetPrintBGImages(aPrintBGImages); } \
  562.   NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange) { return _to GetPrintRange(aPrintRange); } \
  563.   NS_IMETHOD SetPrintRange(PRInt16 aPrintRange) { return _to SetPrintRange(aPrintRange); } \
  564.   NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \
  565.   NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return _to SetTitle(aTitle); } \
  566.   NS_IMETHOD GetDocURL(PRUnichar * *aDocURL) { return _to GetDocURL(aDocURL); } \
  567.   NS_IMETHOD SetDocURL(const PRUnichar * aDocURL) { return _to SetDocURL(aDocURL); } \
  568.   NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft) { return _to GetHeaderStrLeft(aHeaderStrLeft); } \
  569.   NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft) { return _to SetHeaderStrLeft(aHeaderStrLeft); } \
  570.   NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter) { return _to GetHeaderStrCenter(aHeaderStrCenter); } \
  571.   NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter) { return _to SetHeaderStrCenter(aHeaderStrCenter); } \
  572.   NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight) { return _to GetHeaderStrRight(aHeaderStrRight); } \
  573.   NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight) { return _to SetHeaderStrRight(aHeaderStrRight); } \
  574.   NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft) { return _to GetFooterStrLeft(aFooterStrLeft); } \
  575.   NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft) { return _to SetFooterStrLeft(aFooterStrLeft); } \
  576.   NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter) { return _to GetFooterStrCenter(aFooterStrCenter); } \
  577.   NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter) { return _to SetFooterStrCenter(aFooterStrCenter); } \
  578.   NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight) { return _to GetFooterStrRight(aFooterStrRight); } \
  579.   NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight) { return _to SetFooterStrRight(aFooterStrRight); } \
  580.   NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI) { return _to GetHowToEnableFrameUI(aHowToEnableFrameUI); } \
  581.   NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI) { return _to SetHowToEnableFrameUI(aHowToEnableFrameUI); } \
  582.   NS_IMETHOD GetIsCancelled(PRBool *aIsCancelled) { return _to GetIsCancelled(aIsCancelled); } \
  583.   NS_IMETHOD SetIsCancelled(PRBool aIsCancelled) { return _to SetIsCancelled(aIsCancelled); } \
  584.   NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage) { return _to GetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
  585.   NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage) { return _to SetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
  586.   NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType) { return _to GetPrintFrameType(aPrintFrameType); } \
  587.   NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType) { return _to SetPrintFrameType(aPrintFrameType); } \
  588.   NS_IMETHOD GetPrintSilent(PRBool *aPrintSilent) { return _to GetPrintSilent(aPrintSilent); } \
  589.   NS_IMETHOD SetPrintSilent(PRBool aPrintSilent) { return _to SetPrintSilent(aPrintSilent); } \
  590.   NS_IMETHOD GetShrinkToFit(PRBool *aShrinkToFit) { return _to GetShrinkToFit(aShrinkToFit); } \
  591.   NS_IMETHOD SetShrinkToFit(PRBool aShrinkToFit) { return _to SetShrinkToFit(aShrinkToFit); } \
  592.   NS_IMETHOD GetShowPrintProgress(PRBool *aShowPrintProgress) { return _to GetShowPrintProgress(aShowPrintProgress); } \
  593.   NS_IMETHOD SetShowPrintProgress(PRBool aShowPrintProgress) { return _to SetShowPrintProgress(aShowPrintProgress); } \
  594.   NS_IMETHOD GetPaperName(PRUnichar * *aPaperName) { return _to GetPaperName(aPaperName); } \
  595.   NS_IMETHOD SetPaperName(const PRUnichar * aPaperName) { return _to SetPaperName(aPaperName); } \
  596.   NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType) { return _to GetPaperSizeType(aPaperSizeType); } \
  597.   NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType) { return _to SetPaperSizeType(aPaperSizeType); } \
  598.   NS_IMETHOD GetPaperData(PRInt16 *aPaperData) { return _to GetPaperData(aPaperData); } \
  599.   NS_IMETHOD SetPaperData(PRInt16 aPaperData) { return _to SetPaperData(aPaperData); } \
  600.   NS_IMETHOD GetPaperWidth(double *aPaperWidth) { return _to GetPaperWidth(aPaperWidth); } \
  601.   NS_IMETHOD SetPaperWidth(double aPaperWidth) { return _to SetPaperWidth(aPaperWidth); } \
  602.   NS_IMETHOD GetPaperHeight(double *aPaperHeight) { return _to GetPaperHeight(aPaperHeight); } \
  603.   NS_IMETHOD SetPaperHeight(double aPaperHeight) { return _to SetPaperHeight(aPaperHeight); } \
  604.   NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit) { return _to GetPaperSizeUnit(aPaperSizeUnit); } \
  605.   NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit) { return _to SetPaperSizeUnit(aPaperSizeUnit); } \
  606.   NS_IMETHOD GetPlexName(PRUnichar * *aPlexName) { return _to GetPlexName(aPlexName); } \
  607.   NS_IMETHOD SetPlexName(const PRUnichar * aPlexName) { return _to SetPlexName(aPlexName); } \
  608.   NS_IMETHOD GetColorspace(PRUnichar * *aColorspace) { return _to GetColorspace(aColorspace); } \
  609.   NS_IMETHOD SetColorspace(const PRUnichar * aColorspace) { return _to SetColorspace(aColorspace); } \
  610.   NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName) { return _to GetResolutionName(aResolutionName); } \
  611.   NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName) { return _to SetResolutionName(aResolutionName); } \
  612.   NS_IMETHOD GetDownloadFonts(PRBool *aDownloadFonts) { return _to GetDownloadFonts(aDownloadFonts); } \
  613.   NS_IMETHOD SetDownloadFonts(PRBool aDownloadFonts) { return _to SetDownloadFonts(aDownloadFonts); } \
  614.   NS_IMETHOD GetPrintReversed(PRBool *aPrintReversed) { return _to GetPrintReversed(aPrintReversed); } \
  615.   NS_IMETHOD SetPrintReversed(PRBool aPrintReversed) { return _to SetPrintReversed(aPrintReversed); } \
  616.   NS_IMETHOD GetPrintInColor(PRBool *aPrintInColor) { return _to GetPrintInColor(aPrintInColor); } \
  617.   NS_IMETHOD SetPrintInColor(PRBool aPrintInColor) { return _to SetPrintInColor(aPrintInColor); } \
  618.   NS_IMETHOD GetPaperSize(PRInt32 *aPaperSize) { return _to GetPaperSize(aPaperSize); } \
  619.   NS_IMETHOD SetPaperSize(PRInt32 aPaperSize) { return _to SetPaperSize(aPaperSize); } \
  620.   NS_IMETHOD GetOrientation(PRInt32 *aOrientation) { return _to GetOrientation(aOrientation); } \
  621.   NS_IMETHOD SetOrientation(PRInt32 aOrientation) { return _to SetOrientation(aOrientation); } \
  622.   NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand) { return _to GetPrintCommand(aPrintCommand); } \
  623.   NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand) { return _to SetPrintCommand(aPrintCommand); } \
  624.   NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies) { return _to GetNumCopies(aNumCopies); } \
  625.   NS_IMETHOD SetNumCopies(PRInt32 aNumCopies) { return _to SetNumCopies(aNumCopies); } \
  626.   NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName) { return _to GetPrinterName(aPrinterName); } \
  627.   NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName) { return _to SetPrinterName(aPrinterName); } \
  628.   NS_IMETHOD GetPrintToFile(PRBool *aPrintToFile) { return _to GetPrintToFile(aPrintToFile); } \
  629.   NS_IMETHOD SetPrintToFile(PRBool aPrintToFile) { return _to SetPrintToFile(aPrintToFile); } \
  630.   NS_IMETHOD GetToFileName(PRUnichar * *aToFileName) { return _to GetToFileName(aToFileName); } \
  631.   NS_IMETHOD SetToFileName(const PRUnichar * aToFileName) { return _to SetToFileName(aToFileName); } \
  632.   NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay) { return _to GetPrintPageDelay(aPrintPageDelay); } \
  633.   NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay) { return _to SetPrintPageDelay(aPrintPageDelay); } \
  634.   NS_IMETHOD GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter) { return _to GetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
  635.   NS_IMETHOD SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter) { return _to SetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
  636.   NS_IMETHOD GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs) { return _to GetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
  637.   NS_IMETHOD SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs) { return _to SetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
  638.   NS_IMETHOD SetMarginInTwips(nsMargin & aMargin) { return _to SetMarginInTwips(aMargin); } \
  639.   NS_IMETHOD GetMarginInTwips(nsMargin & aMargin) { return _to GetMarginInTwips(aMargin); } 
  640.  
  641. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  642. #define NS_FORWARD_SAFE_NSIPRINTSETTINGS(_to) \
  643.   NS_IMETHOD SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintOptions(aType, aTurnOnOff); } \
  644.   NS_IMETHOD GetPrintOptions(PRInt32 aType, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintOptions(aType, _retval); } \
  645.   NS_IMETHOD GetPrintOptionsBits(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintOptionsBits(_retval); } \
  646.   NS_IMETHOD GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageSizeInTwips(aWidth, aHeight); } \
  647.   NS_IMETHOD Clone(nsIPrintSettings **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
  648.   NS_IMETHOD Assign(nsIPrintSettings *aPS) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assign(aPS); } \
  649.   NS_IMETHOD GetPrintSession(nsIPrintSession * *aPrintSession) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintSession(aPrintSession); } \
  650.   NS_IMETHOD SetPrintSession(nsIPrintSession * aPrintSession) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintSession(aPrintSession); } \
  651.   NS_IMETHOD GetStartPageRange(PRInt32 *aStartPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartPageRange(aStartPageRange); } \
  652.   NS_IMETHOD SetStartPageRange(PRInt32 aStartPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartPageRange(aStartPageRange); } \
  653.   NS_IMETHOD GetEndPageRange(PRInt32 *aEndPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndPageRange(aEndPageRange); } \
  654.   NS_IMETHOD SetEndPageRange(PRInt32 aEndPageRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndPageRange(aEndPageRange); } \
  655.   NS_IMETHOD GetMarginTop(double *aMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginTop(aMarginTop); } \
  656.   NS_IMETHOD SetMarginTop(double aMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginTop(aMarginTop); } \
  657.   NS_IMETHOD GetMarginLeft(double *aMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginLeft(aMarginLeft); } \
  658.   NS_IMETHOD SetMarginLeft(double aMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginLeft(aMarginLeft); } \
  659.   NS_IMETHOD GetMarginBottom(double *aMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginBottom(aMarginBottom); } \
  660.   NS_IMETHOD SetMarginBottom(double aMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginBottom(aMarginBottom); } \
  661.   NS_IMETHOD GetMarginRight(double *aMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginRight(aMarginRight); } \
  662.   NS_IMETHOD SetMarginRight(double aMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginRight(aMarginRight); } \
  663.   NS_IMETHOD GetScaling(double *aScaling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScaling(aScaling); } \
  664.   NS_IMETHOD SetScaling(double aScaling) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScaling(aScaling); } \
  665.   NS_IMETHOD GetPrintBGColors(PRBool *aPrintBGColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintBGColors(aPrintBGColors); } \
  666.   NS_IMETHOD SetPrintBGColors(PRBool aPrintBGColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintBGColors(aPrintBGColors); } \
  667.   NS_IMETHOD GetPrintBGImages(PRBool *aPrintBGImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintBGImages(aPrintBGImages); } \
  668.   NS_IMETHOD SetPrintBGImages(PRBool aPrintBGImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintBGImages(aPrintBGImages); } \
  669.   NS_IMETHOD GetPrintRange(PRInt16 *aPrintRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintRange(aPrintRange); } \
  670.   NS_IMETHOD SetPrintRange(PRInt16 aPrintRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintRange(aPrintRange); } \
  671.   NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  672.   NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
  673.   NS_IMETHOD GetDocURL(PRUnichar * *aDocURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocURL(aDocURL); } \
  674.   NS_IMETHOD SetDocURL(const PRUnichar * aDocURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocURL(aDocURL); } \
  675.   NS_IMETHOD GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaderStrLeft(aHeaderStrLeft); } \
  676.   NS_IMETHOD SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeaderStrLeft(aHeaderStrLeft); } \
  677.   NS_IMETHOD GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaderStrCenter(aHeaderStrCenter); } \
  678.   NS_IMETHOD SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeaderStrCenter(aHeaderStrCenter); } \
  679.   NS_IMETHOD GetHeaderStrRight(PRUnichar * *aHeaderStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeaderStrRight(aHeaderStrRight); } \
  680.   NS_IMETHOD SetHeaderStrRight(const PRUnichar * aHeaderStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeaderStrRight(aHeaderStrRight); } \
  681.   NS_IMETHOD GetFooterStrLeft(PRUnichar * *aFooterStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFooterStrLeft(aFooterStrLeft); } \
  682.   NS_IMETHOD SetFooterStrLeft(const PRUnichar * aFooterStrLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFooterStrLeft(aFooterStrLeft); } \
  683.   NS_IMETHOD GetFooterStrCenter(PRUnichar * *aFooterStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFooterStrCenter(aFooterStrCenter); } \
  684.   NS_IMETHOD SetFooterStrCenter(const PRUnichar * aFooterStrCenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFooterStrCenter(aFooterStrCenter); } \
  685.   NS_IMETHOD GetFooterStrRight(PRUnichar * *aFooterStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFooterStrRight(aFooterStrRight); } \
  686.   NS_IMETHOD SetFooterStrRight(const PRUnichar * aFooterStrRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFooterStrRight(aFooterStrRight); } \
  687.   NS_IMETHOD GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHowToEnableFrameUI(aHowToEnableFrameUI); } \
  688.   NS_IMETHOD SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHowToEnableFrameUI(aHowToEnableFrameUI); } \
  689.   NS_IMETHOD GetIsCancelled(PRBool *aIsCancelled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCancelled(aIsCancelled); } \
  690.   NS_IMETHOD SetIsCancelled(PRBool aIsCancelled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsCancelled(aIsCancelled); } \
  691.   NS_IMETHOD GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
  692.   NS_IMETHOD SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintFrameTypeUsage(aPrintFrameTypeUsage); } \
  693.   NS_IMETHOD GetPrintFrameType(PRInt16 *aPrintFrameType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintFrameType(aPrintFrameType); } \
  694.   NS_IMETHOD SetPrintFrameType(PRInt16 aPrintFrameType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintFrameType(aPrintFrameType); } \
  695.   NS_IMETHOD GetPrintSilent(PRBool *aPrintSilent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintSilent(aPrintSilent); } \
  696.   NS_IMETHOD SetPrintSilent(PRBool aPrintSilent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintSilent(aPrintSilent); } \
  697.   NS_IMETHOD GetShrinkToFit(PRBool *aShrinkToFit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShrinkToFit(aShrinkToFit); } \
  698.   NS_IMETHOD SetShrinkToFit(PRBool aShrinkToFit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShrinkToFit(aShrinkToFit); } \
  699.   NS_IMETHOD GetShowPrintProgress(PRBool *aShowPrintProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShowPrintProgress(aShowPrintProgress); } \
  700.   NS_IMETHOD SetShowPrintProgress(PRBool aShowPrintProgress) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShowPrintProgress(aShowPrintProgress); } \
  701.   NS_IMETHOD GetPaperName(PRUnichar * *aPaperName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperName(aPaperName); } \
  702.   NS_IMETHOD SetPaperName(const PRUnichar * aPaperName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperName(aPaperName); } \
  703.   NS_IMETHOD GetPaperSizeType(PRInt16 *aPaperSizeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperSizeType(aPaperSizeType); } \
  704.   NS_IMETHOD SetPaperSizeType(PRInt16 aPaperSizeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperSizeType(aPaperSizeType); } \
  705.   NS_IMETHOD GetPaperData(PRInt16 *aPaperData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperData(aPaperData); } \
  706.   NS_IMETHOD SetPaperData(PRInt16 aPaperData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperData(aPaperData); } \
  707.   NS_IMETHOD GetPaperWidth(double *aPaperWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperWidth(aPaperWidth); } \
  708.   NS_IMETHOD SetPaperWidth(double aPaperWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperWidth(aPaperWidth); } \
  709.   NS_IMETHOD GetPaperHeight(double *aPaperHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperHeight(aPaperHeight); } \
  710.   NS_IMETHOD SetPaperHeight(double aPaperHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperHeight(aPaperHeight); } \
  711.   NS_IMETHOD GetPaperSizeUnit(PRInt16 *aPaperSizeUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperSizeUnit(aPaperSizeUnit); } \
  712.   NS_IMETHOD SetPaperSizeUnit(PRInt16 aPaperSizeUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperSizeUnit(aPaperSizeUnit); } \
  713.   NS_IMETHOD GetPlexName(PRUnichar * *aPlexName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlexName(aPlexName); } \
  714.   NS_IMETHOD SetPlexName(const PRUnichar * aPlexName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPlexName(aPlexName); } \
  715.   NS_IMETHOD GetColorspace(PRUnichar * *aColorspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorspace(aColorspace); } \
  716.   NS_IMETHOD SetColorspace(const PRUnichar * aColorspace) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColorspace(aColorspace); } \
  717.   NS_IMETHOD GetResolutionName(PRUnichar * *aResolutionName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResolutionName(aResolutionName); } \
  718.   NS_IMETHOD SetResolutionName(const PRUnichar * aResolutionName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResolutionName(aResolutionName); } \
  719.   NS_IMETHOD GetDownloadFonts(PRBool *aDownloadFonts) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadFonts(aDownloadFonts); } \
  720.   NS_IMETHOD SetDownloadFonts(PRBool aDownloadFonts) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDownloadFonts(aDownloadFonts); } \
  721.   NS_IMETHOD GetPrintReversed(PRBool *aPrintReversed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintReversed(aPrintReversed); } \
  722.   NS_IMETHOD SetPrintReversed(PRBool aPrintReversed) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintReversed(aPrintReversed); } \
  723.   NS_IMETHOD GetPrintInColor(PRBool *aPrintInColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintInColor(aPrintInColor); } \
  724.   NS_IMETHOD SetPrintInColor(PRBool aPrintInColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintInColor(aPrintInColor); } \
  725.   NS_IMETHOD GetPaperSize(PRInt32 *aPaperSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaperSize(aPaperSize); } \
  726.   NS_IMETHOD SetPaperSize(PRInt32 aPaperSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaperSize(aPaperSize); } \
  727.   NS_IMETHOD GetOrientation(PRInt32 *aOrientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrientation(aOrientation); } \
  728.   NS_IMETHOD SetOrientation(PRInt32 aOrientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOrientation(aOrientation); } \
  729.   NS_IMETHOD GetPrintCommand(PRUnichar * *aPrintCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintCommand(aPrintCommand); } \
  730.   NS_IMETHOD SetPrintCommand(const PRUnichar * aPrintCommand) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintCommand(aPrintCommand); } \
  731.   NS_IMETHOD GetNumCopies(PRInt32 *aNumCopies) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumCopies(aNumCopies); } \
  732.   NS_IMETHOD SetNumCopies(PRInt32 aNumCopies) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNumCopies(aNumCopies); } \
  733.   NS_IMETHOD GetPrinterName(PRUnichar * *aPrinterName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrinterName(aPrinterName); } \
  734.   NS_IMETHOD SetPrinterName(const PRUnichar * aPrinterName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrinterName(aPrinterName); } \
  735.   NS_IMETHOD GetPrintToFile(PRBool *aPrintToFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintToFile(aPrintToFile); } \
  736.   NS_IMETHOD SetPrintToFile(PRBool aPrintToFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintToFile(aPrintToFile); } \
  737.   NS_IMETHOD GetToFileName(PRUnichar * *aToFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToFileName(aToFileName); } \
  738.   NS_IMETHOD SetToFileName(const PRUnichar * aToFileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetToFileName(aToFileName); } \
  739.   NS_IMETHOD GetPrintPageDelay(PRInt32 *aPrintPageDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintPageDelay(aPrintPageDelay); } \
  740.   NS_IMETHOD SetPrintPageDelay(PRInt32 aPrintPageDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrintPageDelay(aPrintPageDelay); } \
  741.   NS_IMETHOD GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
  742.   NS_IMETHOD SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInitializedFromPrinter(aIsInitializedFromPrinter); } \
  743.   NS_IMETHOD GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
  744.   NS_IMETHOD SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInitializedFromPrefs(aIsInitializedFromPrefs); } \
  745.   NS_IMETHOD SetMarginInTwips(nsMargin & aMargin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginInTwips(aMargin); } \
  746.   NS_IMETHOD GetMarginInTwips(nsMargin & aMargin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginInTwips(aMargin); } 
  747.  
  748. #if 0
  749. /* Use the code below as a template for the implementation class for this interface. */
  750.  
  751. /* Header file */
  752. class nsPrintSettings : public nsIPrintSettings
  753. {
  754. public:
  755.   NS_DECL_ISUPPORTS
  756.   NS_DECL_NSIPRINTSETTINGS
  757.  
  758.   nsPrintSettings();
  759.  
  760. private:
  761.   ~nsPrintSettings();
  762.  
  763. protected:
  764.   /* additional members */
  765. };
  766.  
  767. /* Implementation file */
  768. NS_IMPL_ISUPPORTS1(nsPrintSettings, nsIPrintSettings)
  769.  
  770. nsPrintSettings::nsPrintSettings()
  771. {
  772.   /* member initializers and constructor code */
  773. }
  774.  
  775. nsPrintSettings::~nsPrintSettings()
  776. {
  777.   /* destructor code */
  778. }
  779.  
  780. /* void SetPrintOptions (in PRInt32 aType, in PRBool aTurnOnOff); */
  781. NS_IMETHODIMP nsPrintSettings::SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff)
  782. {
  783.     return NS_ERROR_NOT_IMPLEMENTED;
  784. }
  785.  
  786. /* PRBool GetPrintOptions (in PRInt32 aType); */
  787. NS_IMETHODIMP nsPrintSettings::GetPrintOptions(PRInt32 aType, PRBool *_retval)
  788. {
  789.     return NS_ERROR_NOT_IMPLEMENTED;
  790. }
  791.  
  792. /* PRInt32 GetPrintOptionsBits (); */
  793. NS_IMETHODIMP nsPrintSettings::GetPrintOptionsBits(PRInt32 *_retval)
  794. {
  795.     return NS_ERROR_NOT_IMPLEMENTED;
  796. }
  797.  
  798. /* void GetPageSizeInTwips (out long aWidth, out long aHeight); */
  799. NS_IMETHODIMP nsPrintSettings::GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight)
  800. {
  801.     return NS_ERROR_NOT_IMPLEMENTED;
  802. }
  803.  
  804. /* nsIPrintSettings clone (); */
  805. NS_IMETHODIMP nsPrintSettings::Clone(nsIPrintSettings **_retval)
  806. {
  807.     return NS_ERROR_NOT_IMPLEMENTED;
  808. }
  809.  
  810. /* void assign (in nsIPrintSettings aPS); */
  811. NS_IMETHODIMP nsPrintSettings::Assign(nsIPrintSettings *aPS)
  812. {
  813.     return NS_ERROR_NOT_IMPLEMENTED;
  814. }
  815.  
  816. /* [noscript] attribute nsIPrintSession printSession; */
  817. NS_IMETHODIMP nsPrintSettings::GetPrintSession(nsIPrintSession * *aPrintSession)
  818. {
  819.     return NS_ERROR_NOT_IMPLEMENTED;
  820. }
  821. NS_IMETHODIMP nsPrintSettings::SetPrintSession(nsIPrintSession * aPrintSession)
  822. {
  823.     return NS_ERROR_NOT_IMPLEMENTED;
  824. }
  825.  
  826. /* attribute long startPageRange; */
  827. NS_IMETHODIMP nsPrintSettings::GetStartPageRange(PRInt32 *aStartPageRange)
  828. {
  829.     return NS_ERROR_NOT_IMPLEMENTED;
  830. }
  831. NS_IMETHODIMP nsPrintSettings::SetStartPageRange(PRInt32 aStartPageRange)
  832. {
  833.     return NS_ERROR_NOT_IMPLEMENTED;
  834. }
  835.  
  836. /* attribute long endPageRange; */
  837. NS_IMETHODIMP nsPrintSettings::GetEndPageRange(PRInt32 *aEndPageRange)
  838. {
  839.     return NS_ERROR_NOT_IMPLEMENTED;
  840. }
  841. NS_IMETHODIMP nsPrintSettings::SetEndPageRange(PRInt32 aEndPageRange)
  842. {
  843.     return NS_ERROR_NOT_IMPLEMENTED;
  844. }
  845.  
  846. /* attribute double marginTop; */
  847. NS_IMETHODIMP nsPrintSettings::GetMarginTop(double *aMarginTop)
  848. {
  849.     return NS_ERROR_NOT_IMPLEMENTED;
  850. }
  851. NS_IMETHODIMP nsPrintSettings::SetMarginTop(double aMarginTop)
  852. {
  853.     return NS_ERROR_NOT_IMPLEMENTED;
  854. }
  855.  
  856. /* attribute double marginLeft; */
  857. NS_IMETHODIMP nsPrintSettings::GetMarginLeft(double *aMarginLeft)
  858. {
  859.     return NS_ERROR_NOT_IMPLEMENTED;
  860. }
  861. NS_IMETHODIMP nsPrintSettings::SetMarginLeft(double aMarginLeft)
  862. {
  863.     return NS_ERROR_NOT_IMPLEMENTED;
  864. }
  865.  
  866. /* attribute double marginBottom; */
  867. NS_IMETHODIMP nsPrintSettings::GetMarginBottom(double *aMarginBottom)
  868. {
  869.     return NS_ERROR_NOT_IMPLEMENTED;
  870. }
  871. NS_IMETHODIMP nsPrintSettings::SetMarginBottom(double aMarginBottom)
  872. {
  873.     return NS_ERROR_NOT_IMPLEMENTED;
  874. }
  875.  
  876. /* attribute double marginRight; */
  877. NS_IMETHODIMP nsPrintSettings::GetMarginRight(double *aMarginRight)
  878. {
  879.     return NS_ERROR_NOT_IMPLEMENTED;
  880. }
  881. NS_IMETHODIMP nsPrintSettings::SetMarginRight(double aMarginRight)
  882. {
  883.     return NS_ERROR_NOT_IMPLEMENTED;
  884. }
  885.  
  886. /* attribute double scaling; */
  887. NS_IMETHODIMP nsPrintSettings::GetScaling(double *aScaling)
  888. {
  889.     return NS_ERROR_NOT_IMPLEMENTED;
  890. }
  891. NS_IMETHODIMP nsPrintSettings::SetScaling(double aScaling)
  892. {
  893.     return NS_ERROR_NOT_IMPLEMENTED;
  894. }
  895.  
  896. /* attribute boolean printBGColors; */
  897. NS_IMETHODIMP nsPrintSettings::GetPrintBGColors(PRBool *aPrintBGColors)
  898. {
  899.     return NS_ERROR_NOT_IMPLEMENTED;
  900. }
  901. NS_IMETHODIMP nsPrintSettings::SetPrintBGColors(PRBool aPrintBGColors)
  902. {
  903.     return NS_ERROR_NOT_IMPLEMENTED;
  904. }
  905.  
  906. /* attribute boolean printBGImages; */
  907. NS_IMETHODIMP nsPrintSettings::GetPrintBGImages(PRBool *aPrintBGImages)
  908. {
  909.     return NS_ERROR_NOT_IMPLEMENTED;
  910. }
  911. NS_IMETHODIMP nsPrintSettings::SetPrintBGImages(PRBool aPrintBGImages)
  912. {
  913.     return NS_ERROR_NOT_IMPLEMENTED;
  914. }
  915.  
  916. /* attribute short printRange; */
  917. NS_IMETHODIMP nsPrintSettings::GetPrintRange(PRInt16 *aPrintRange)
  918. {
  919.     return NS_ERROR_NOT_IMPLEMENTED;
  920. }
  921. NS_IMETHODIMP nsPrintSettings::SetPrintRange(PRInt16 aPrintRange)
  922. {
  923.     return NS_ERROR_NOT_IMPLEMENTED;
  924. }
  925.  
  926. /* attribute wstring title; */
  927. NS_IMETHODIMP nsPrintSettings::GetTitle(PRUnichar * *aTitle)
  928. {
  929.     return NS_ERROR_NOT_IMPLEMENTED;
  930. }
  931. NS_IMETHODIMP nsPrintSettings::SetTitle(const PRUnichar * aTitle)
  932. {
  933.     return NS_ERROR_NOT_IMPLEMENTED;
  934. }
  935.  
  936. /* attribute wstring docURL; */
  937. NS_IMETHODIMP nsPrintSettings::GetDocURL(PRUnichar * *aDocURL)
  938. {
  939.     return NS_ERROR_NOT_IMPLEMENTED;
  940. }
  941. NS_IMETHODIMP nsPrintSettings::SetDocURL(const PRUnichar * aDocURL)
  942. {
  943.     return NS_ERROR_NOT_IMPLEMENTED;
  944. }
  945.  
  946. /* attribute wstring headerStrLeft; */
  947. NS_IMETHODIMP nsPrintSettings::GetHeaderStrLeft(PRUnichar * *aHeaderStrLeft)
  948. {
  949.     return NS_ERROR_NOT_IMPLEMENTED;
  950. }
  951. NS_IMETHODIMP nsPrintSettings::SetHeaderStrLeft(const PRUnichar * aHeaderStrLeft)
  952. {
  953.     return NS_ERROR_NOT_IMPLEMENTED;
  954. }
  955.  
  956. /* attribute wstring headerStrCenter; */
  957. NS_IMETHODIMP nsPrintSettings::GetHeaderStrCenter(PRUnichar * *aHeaderStrCenter)
  958. {
  959.     return NS_ERROR_NOT_IMPLEMENTED;
  960. }
  961. NS_IMETHODIMP nsPrintSettings::SetHeaderStrCenter(const PRUnichar * aHeaderStrCenter)
  962. {
  963.     return NS_ERROR_NOT_IMPLEMENTED;
  964. }
  965.  
  966. /* attribute wstring headerStrRight; */
  967. NS_IMETHODIMP nsPrintSettings::GetHeaderStrRight(PRUnichar * *aHeaderStrRight)
  968. {
  969.     return NS_ERROR_NOT_IMPLEMENTED;
  970. }
  971. NS_IMETHODIMP nsPrintSettings::SetHeaderStrRight(const PRUnichar * aHeaderStrRight)
  972. {
  973.     return NS_ERROR_NOT_IMPLEMENTED;
  974. }
  975.  
  976. /* attribute wstring footerStrLeft; */
  977. NS_IMETHODIMP nsPrintSettings::GetFooterStrLeft(PRUnichar * *aFooterStrLeft)
  978. {
  979.     return NS_ERROR_NOT_IMPLEMENTED;
  980. }
  981. NS_IMETHODIMP nsPrintSettings::SetFooterStrLeft(const PRUnichar * aFooterStrLeft)
  982. {
  983.     return NS_ERROR_NOT_IMPLEMENTED;
  984. }
  985.  
  986. /* attribute wstring footerStrCenter; */
  987. NS_IMETHODIMP nsPrintSettings::GetFooterStrCenter(PRUnichar * *aFooterStrCenter)
  988. {
  989.     return NS_ERROR_NOT_IMPLEMENTED;
  990. }
  991. NS_IMETHODIMP nsPrintSettings::SetFooterStrCenter(const PRUnichar * aFooterStrCenter)
  992. {
  993.     return NS_ERROR_NOT_IMPLEMENTED;
  994. }
  995.  
  996. /* attribute wstring footerStrRight; */
  997. NS_IMETHODIMP nsPrintSettings::GetFooterStrRight(PRUnichar * *aFooterStrRight)
  998. {
  999.     return NS_ERROR_NOT_IMPLEMENTED;
  1000. }
  1001. NS_IMETHODIMP nsPrintSettings::SetFooterStrRight(const PRUnichar * aFooterStrRight)
  1002. {
  1003.     return NS_ERROR_NOT_IMPLEMENTED;
  1004. }
  1005.  
  1006. /* attribute short howToEnableFrameUI; */
  1007. NS_IMETHODIMP nsPrintSettings::GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI)
  1008. {
  1009.     return NS_ERROR_NOT_IMPLEMENTED;
  1010. }
  1011. NS_IMETHODIMP nsPrintSettings::SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI)
  1012. {
  1013.     return NS_ERROR_NOT_IMPLEMENTED;
  1014. }
  1015.  
  1016. /* attribute boolean isCancelled; */
  1017. NS_IMETHODIMP nsPrintSettings::GetIsCancelled(PRBool *aIsCancelled)
  1018. {
  1019.     return NS_ERROR_NOT_IMPLEMENTED;
  1020. }
  1021. NS_IMETHODIMP nsPrintSettings::SetIsCancelled(PRBool aIsCancelled)
  1022. {
  1023.     return NS_ERROR_NOT_IMPLEMENTED;
  1024. }
  1025.  
  1026. /* attribute short printFrameTypeUsage; */
  1027. NS_IMETHODIMP nsPrintSettings::GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage)
  1028. {
  1029.     return NS_ERROR_NOT_IMPLEMENTED;
  1030. }
  1031. NS_IMETHODIMP nsPrintSettings::SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage)
  1032. {
  1033.     return NS_ERROR_NOT_IMPLEMENTED;
  1034. }
  1035.  
  1036. /* attribute short printFrameType; */
  1037. NS_IMETHODIMP nsPrintSettings::GetPrintFrameType(PRInt16 *aPrintFrameType)
  1038. {
  1039.     return NS_ERROR_NOT_IMPLEMENTED;
  1040. }
  1041. NS_IMETHODIMP nsPrintSettings::SetPrintFrameType(PRInt16 aPrintFrameType)
  1042. {
  1043.     return NS_ERROR_NOT_IMPLEMENTED;
  1044. }
  1045.  
  1046. /* attribute boolean printSilent; */
  1047. NS_IMETHODIMP nsPrintSettings::GetPrintSilent(PRBool *aPrintSilent)
  1048. {
  1049.     return NS_ERROR_NOT_IMPLEMENTED;
  1050. }
  1051. NS_IMETHODIMP nsPrintSettings::SetPrintSilent(PRBool aPrintSilent)
  1052. {
  1053.     return NS_ERROR_NOT_IMPLEMENTED;
  1054. }
  1055.  
  1056. /* attribute boolean shrinkToFit; */
  1057. NS_IMETHODIMP nsPrintSettings::GetShrinkToFit(PRBool *aShrinkToFit)
  1058. {
  1059.     return NS_ERROR_NOT_IMPLEMENTED;
  1060. }
  1061. NS_IMETHODIMP nsPrintSettings::SetShrinkToFit(PRBool aShrinkToFit)
  1062. {
  1063.     return NS_ERROR_NOT_IMPLEMENTED;
  1064. }
  1065.  
  1066. /* attribute boolean showPrintProgress; */
  1067. NS_IMETHODIMP nsPrintSettings::GetShowPrintProgress(PRBool *aShowPrintProgress)
  1068. {
  1069.     return NS_ERROR_NOT_IMPLEMENTED;
  1070. }
  1071. NS_IMETHODIMP nsPrintSettings::SetShowPrintProgress(PRBool aShowPrintProgress)
  1072. {
  1073.     return NS_ERROR_NOT_IMPLEMENTED;
  1074. }
  1075.  
  1076. /* attribute wstring paperName; */
  1077. NS_IMETHODIMP nsPrintSettings::GetPaperName(PRUnichar * *aPaperName)
  1078. {
  1079.     return NS_ERROR_NOT_IMPLEMENTED;
  1080. }
  1081. NS_IMETHODIMP nsPrintSettings::SetPaperName(const PRUnichar * aPaperName)
  1082. {
  1083.     return NS_ERROR_NOT_IMPLEMENTED;
  1084. }
  1085.  
  1086. /* attribute short paperSizeType; */
  1087. NS_IMETHODIMP nsPrintSettings::GetPaperSizeType(PRInt16 *aPaperSizeType)
  1088. {
  1089.     return NS_ERROR_NOT_IMPLEMENTED;
  1090. }
  1091. NS_IMETHODIMP nsPrintSettings::SetPaperSizeType(PRInt16 aPaperSizeType)
  1092. {
  1093.     return NS_ERROR_NOT_IMPLEMENTED;
  1094. }
  1095.  
  1096. /* attribute short paperData; */
  1097. NS_IMETHODIMP nsPrintSettings::GetPaperData(PRInt16 *aPaperData)
  1098. {
  1099.     return NS_ERROR_NOT_IMPLEMENTED;
  1100. }
  1101. NS_IMETHODIMP nsPrintSettings::SetPaperData(PRInt16 aPaperData)
  1102. {
  1103.     return NS_ERROR_NOT_IMPLEMENTED;
  1104. }
  1105.  
  1106. /* attribute double paperWidth; */
  1107. NS_IMETHODIMP nsPrintSettings::GetPaperWidth(double *aPaperWidth)
  1108. {
  1109.     return NS_ERROR_NOT_IMPLEMENTED;
  1110. }
  1111. NS_IMETHODIMP nsPrintSettings::SetPaperWidth(double aPaperWidth)
  1112. {
  1113.     return NS_ERROR_NOT_IMPLEMENTED;
  1114. }
  1115.  
  1116. /* attribute double paperHeight; */
  1117. NS_IMETHODIMP nsPrintSettings::GetPaperHeight(double *aPaperHeight)
  1118. {
  1119.     return NS_ERROR_NOT_IMPLEMENTED;
  1120. }
  1121. NS_IMETHODIMP nsPrintSettings::SetPaperHeight(double aPaperHeight)
  1122. {
  1123.     return NS_ERROR_NOT_IMPLEMENTED;
  1124. }
  1125.  
  1126. /* attribute short paperSizeUnit; */
  1127. NS_IMETHODIMP nsPrintSettings::GetPaperSizeUnit(PRInt16 *aPaperSizeUnit)
  1128. {
  1129.     return NS_ERROR_NOT_IMPLEMENTED;
  1130. }
  1131. NS_IMETHODIMP nsPrintSettings::SetPaperSizeUnit(PRInt16 aPaperSizeUnit)
  1132. {
  1133.     return NS_ERROR_NOT_IMPLEMENTED;
  1134. }
  1135.  
  1136. /* attribute wstring plexName; */
  1137. NS_IMETHODIMP nsPrintSettings::GetPlexName(PRUnichar * *aPlexName)
  1138. {
  1139.     return NS_ERROR_NOT_IMPLEMENTED;
  1140. }
  1141. NS_IMETHODIMP nsPrintSettings::SetPlexName(const PRUnichar * aPlexName)
  1142. {
  1143.     return NS_ERROR_NOT_IMPLEMENTED;
  1144. }
  1145.  
  1146. /* attribute wstring colorspace; */
  1147. NS_IMETHODIMP nsPrintSettings::GetColorspace(PRUnichar * *aColorspace)
  1148. {
  1149.     return NS_ERROR_NOT_IMPLEMENTED;
  1150. }
  1151. NS_IMETHODIMP nsPrintSettings::SetColorspace(const PRUnichar * aColorspace)
  1152. {
  1153.     return NS_ERROR_NOT_IMPLEMENTED;
  1154. }
  1155.  
  1156. /* attribute wstring resolutionName; */
  1157. NS_IMETHODIMP nsPrintSettings::GetResolutionName(PRUnichar * *aResolutionName)
  1158. {
  1159.     return NS_ERROR_NOT_IMPLEMENTED;
  1160. }
  1161. NS_IMETHODIMP nsPrintSettings::SetResolutionName(const PRUnichar * aResolutionName)
  1162. {
  1163.     return NS_ERROR_NOT_IMPLEMENTED;
  1164. }
  1165.  
  1166. /* attribute boolean downloadFonts; */
  1167. NS_IMETHODIMP nsPrintSettings::GetDownloadFonts(PRBool *aDownloadFonts)
  1168. {
  1169.     return NS_ERROR_NOT_IMPLEMENTED;
  1170. }
  1171. NS_IMETHODIMP nsPrintSettings::SetDownloadFonts(PRBool aDownloadFonts)
  1172. {
  1173.     return NS_ERROR_NOT_IMPLEMENTED;
  1174. }
  1175.  
  1176. /* attribute boolean printReversed; */
  1177. NS_IMETHODIMP nsPrintSettings::GetPrintReversed(PRBool *aPrintReversed)
  1178. {
  1179.     return NS_ERROR_NOT_IMPLEMENTED;
  1180. }
  1181. NS_IMETHODIMP nsPrintSettings::SetPrintReversed(PRBool aPrintReversed)
  1182. {
  1183.     return NS_ERROR_NOT_IMPLEMENTED;
  1184. }
  1185.  
  1186. /* attribute boolean printInColor; */
  1187. NS_IMETHODIMP nsPrintSettings::GetPrintInColor(PRBool *aPrintInColor)
  1188. {
  1189.     return NS_ERROR_NOT_IMPLEMENTED;
  1190. }
  1191. NS_IMETHODIMP nsPrintSettings::SetPrintInColor(PRBool aPrintInColor)
  1192. {
  1193.     return NS_ERROR_NOT_IMPLEMENTED;
  1194. }
  1195.  
  1196. /* attribute long paperSize; */
  1197. NS_IMETHODIMP nsPrintSettings::GetPaperSize(PRInt32 *aPaperSize)
  1198. {
  1199.     return NS_ERROR_NOT_IMPLEMENTED;
  1200. }
  1201. NS_IMETHODIMP nsPrintSettings::SetPaperSize(PRInt32 aPaperSize)
  1202. {
  1203.     return NS_ERROR_NOT_IMPLEMENTED;
  1204. }
  1205.  
  1206. /* attribute long orientation; */
  1207. NS_IMETHODIMP nsPrintSettings::GetOrientation(PRInt32 *aOrientation)
  1208. {
  1209.     return NS_ERROR_NOT_IMPLEMENTED;
  1210. }
  1211. NS_IMETHODIMP nsPrintSettings::SetOrientation(PRInt32 aOrientation)
  1212. {
  1213.     return NS_ERROR_NOT_IMPLEMENTED;
  1214. }
  1215.  
  1216. /* attribute wstring printCommand; */
  1217. NS_IMETHODIMP nsPrintSettings::GetPrintCommand(PRUnichar * *aPrintCommand)
  1218. {
  1219.     return NS_ERROR_NOT_IMPLEMENTED;
  1220. }
  1221. NS_IMETHODIMP nsPrintSettings::SetPrintCommand(const PRUnichar * aPrintCommand)
  1222. {
  1223.     return NS_ERROR_NOT_IMPLEMENTED;
  1224. }
  1225.  
  1226. /* attribute long numCopies; */
  1227. NS_IMETHODIMP nsPrintSettings::GetNumCopies(PRInt32 *aNumCopies)
  1228. {
  1229.     return NS_ERROR_NOT_IMPLEMENTED;
  1230. }
  1231. NS_IMETHODIMP nsPrintSettings::SetNumCopies(PRInt32 aNumCopies)
  1232. {
  1233.     return NS_ERROR_NOT_IMPLEMENTED;
  1234. }
  1235.  
  1236. /* attribute wstring printerName; */
  1237. NS_IMETHODIMP nsPrintSettings::GetPrinterName(PRUnichar * *aPrinterName)
  1238. {
  1239.     return NS_ERROR_NOT_IMPLEMENTED;
  1240. }
  1241. NS_IMETHODIMP nsPrintSettings::SetPrinterName(const PRUnichar * aPrinterName)
  1242. {
  1243.     return NS_ERROR_NOT_IMPLEMENTED;
  1244. }
  1245.  
  1246. /* attribute boolean printToFile; */
  1247. NS_IMETHODIMP nsPrintSettings::GetPrintToFile(PRBool *aPrintToFile)
  1248. {
  1249.     return NS_ERROR_NOT_IMPLEMENTED;
  1250. }
  1251. NS_IMETHODIMP nsPrintSettings::SetPrintToFile(PRBool aPrintToFile)
  1252. {
  1253.     return NS_ERROR_NOT_IMPLEMENTED;
  1254. }
  1255.  
  1256. /* attribute wstring toFileName; */
  1257. NS_IMETHODIMP nsPrintSettings::GetToFileName(PRUnichar * *aToFileName)
  1258. {
  1259.     return NS_ERROR_NOT_IMPLEMENTED;
  1260. }
  1261. NS_IMETHODIMP nsPrintSettings::SetToFileName(const PRUnichar * aToFileName)
  1262. {
  1263.     return NS_ERROR_NOT_IMPLEMENTED;
  1264. }
  1265.  
  1266. /* attribute long printPageDelay; */
  1267. NS_IMETHODIMP nsPrintSettings::GetPrintPageDelay(PRInt32 *aPrintPageDelay)
  1268. {
  1269.     return NS_ERROR_NOT_IMPLEMENTED;
  1270. }
  1271. NS_IMETHODIMP nsPrintSettings::SetPrintPageDelay(PRInt32 aPrintPageDelay)
  1272. {
  1273.     return NS_ERROR_NOT_IMPLEMENTED;
  1274. }
  1275.  
  1276. /* attribute boolean isInitializedFromPrinter; */
  1277. NS_IMETHODIMP nsPrintSettings::GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter)
  1278. {
  1279.     return NS_ERROR_NOT_IMPLEMENTED;
  1280. }
  1281. NS_IMETHODIMP nsPrintSettings::SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter)
  1282. {
  1283.     return NS_ERROR_NOT_IMPLEMENTED;
  1284. }
  1285.  
  1286. /* attribute boolean isInitializedFromPrefs; */
  1287. NS_IMETHODIMP nsPrintSettings::GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs)
  1288. {
  1289.     return NS_ERROR_NOT_IMPLEMENTED;
  1290. }
  1291. NS_IMETHODIMP nsPrintSettings::SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs)
  1292. {
  1293.     return NS_ERROR_NOT_IMPLEMENTED;
  1294. }
  1295.  
  1296. /* [noscript] void SetMarginInTwips (in nsNativeMarginRef aMargin); */
  1297. NS_IMETHODIMP nsPrintSettings::SetMarginInTwips(nsMargin & aMargin)
  1298. {
  1299.     return NS_ERROR_NOT_IMPLEMENTED;
  1300. }
  1301.  
  1302. /* [noscript] void GetMarginInTwips (in nsNativeMarginRef aMargin); */
  1303. NS_IMETHODIMP nsPrintSettings::GetMarginInTwips(nsMargin & aMargin)
  1304. {
  1305.     return NS_ERROR_NOT_IMPLEMENTED;
  1306. }
  1307.  
  1308. /* End of implementation class template. */
  1309. #endif
  1310.  
  1311.  
  1312. #endif /* __gen_nsIPrintSettings_h__ */
  1313.